Skip to content

Conversation

@alex052525
Copy link
Contributor

추가한 기능 설명

캐릭터 정보 수집 api 추가

check list

localhost:8080/api/v1/user/charactersInfo/캐릭터명
주소로 api 요청 시에 json값으로 ServerName, CharacterName, CharacterLevel, CharacterClassName, ItemAvgLevel, ItemMaxLevel 이 반환되는지 확인

  • [O] issue number를 브랜치 앞에 추가 하였는가?
  • [O] 모든 단위 테스트를 돌려보고 기존에 작동하던 테스트에 영향이 없는 것을 확인했는가?

@alex052525 alex052525 added the 기능구현 기능구현 label Jul 20, 2023
@alex052525 alex052525 self-assigned this Jul 20, 2023
@alex052525 alex052525 linked an issue Jul 20, 2023 that may be closed by this pull request
return ResponseEntity.ok(ResultResponse.of(ResultCode.UPDATE_USER_PASSWORD_SUCCESS));
}
@GetMapping("/charactersInfo/{characterName}")
public ResponseEntity<String> getCharactersInfo(@RequestHeader("API-Key") String apiKey,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헤더에 API-key 가 있는데 이거는 어떤 역할을 하는거야?

@vixloaze
Copy link
Contributor

복잡할 거 같은 기능인데 생각보다 API 보내는 것은 그다지 코드량이 많지 않네.. 고생했어 :)

String apiUrl = "https://developer-lostark.game.onstove.com/characters/" + characterName + "/siblings";
@PathVariable String characterName,
@RequestParam(required = false, defaultValue = "") String filter) {
String apiUrl = "https://developer-lostark.game.onstove.com/armories/characters/" + characterName +"/"+ filter;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requestParam 으로 받는 값을 통해서 그 API에 해당하는 정보만 가져오게 하는 거 맞지?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

기능구현 기능구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 캐릭터 정보 가져오는 오픈 api 추가

3 participants